package com.changgou.goods;

import com.changgou.entity.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

@MapperScan(basePackages = {"com.changgou.goods.dao"})
@EnableEurekaClient
@SpringBootApplication
public class GoodsApplication_9011 {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication_9011.class, args);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(0, 0);
    }
}
